{% extends "site.html" %}
{% block content %}
    <div class="container">

	<div class="row">
	    <div class="span4 offset4 ">
		<h2>Register</h2>
		<form action="/register" method="post" class="well">
		    {% csrf_token %}
		
		    {% if errmsg %}
			<div class="alert alert-error">
			    <strong>{{ errmsg }}</strong>
			</div>
		    {% endif %}
		    
		    {{ form.as_p }}
		    <button type="submit" class="btn btn-primary">Register</button>
		</form>
	    </div>
	</div>
    
	<div class="row">
	    <div class="span4 offset4">
		<a href="/login">Already having an account?</a>
	    </div>
	</div>
    {% include "site-footer.html" %}

    </div>
{% endblock %}